#include "ti83plus.inc"
#include "app.inc"





Player1_X .equ appbackupscreen
Player1_Y .equ appbackupscreen + 1
Player1_Unit .equ appbackupscreen + 2
Player1_Turret_Position .equ appbackupscreen + 3    ;Where the weapon is firing.
                                                    ;Although only two units have turrets to fire,
                                                    ;using the turret variable to determine
                                                    ;firing direction makes it easier to
                                                    ;program the firing of any unit in the
                                                    ;game

Player1_Direction .equ appbackupscreen + 4          ;Used to determine which sprite to use
                                                    ;depending on which direction the
                                                    ;ship is going
Number_Of_Turret_Frames .equ appbackupscreen + 9
Sprite_Width .equ appbackupscreen + 5
Turret_Data_Interval .equ appbackupscreen + 6 ;Two bytes of data
Walking_Sprite_Frame .equ appbackupscreen + 8 ;Only for the Scouter.
                                                ;This value is 2 when the Scouter
                                                ;is standing still, and alternates
                                                ;between 0 and 1 depending on which
                                                ;frame the Scouter should display
                                                ;for its walking legs




;--------------------------------------------------------------------------------
; The following values assign ship names as different constants, used for
; changing the unit type for players
;-------------------------------------------------------------------------------- 

Scouter     .equ 0
Raptor      .equ 1
Tank        .equ 2
Argo        .equ 3
Degruser    .equ 4
Reclauda    .equ 5
Camoza      .equ 6
Balkstone   .equ 7
Splitron    .equ 8






defpage(0, "S.A.D.")
 

;  Main app control begins here
StartApp:

#include "Multiplayer Menu 2.asm"
#include "Main.asm"
#include "Draw Scouter.asm"
#include "Draw Unit.asm"
#include "Input For Attack Mode.asm"
#include "PutSpriteMask.asm"
#include "PutSpriteOR.asm"
#include "Scouter Fire.asm"
#include "Player Attributes.asm"
#include "Bell.inc"




;-Debugging Multiplayer Lobby

 call Multiplayer_Lobby



 RET

Validate()



